


print(16*1024*1024*1024)


print(4378*4378*3/1024/1024)


print(16*2**(30)/3/4378/4378)


print(12*12*2,'MB')


import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline


%%writefile velocity_earth.csv
name,velocity,earth
苹果,0.1,falldown
网球,50,falldown
羽毛球,63,falldown
大炮,600,falldown
子弹,850,falldown
鬼怪,2370,falldown
防空导弹,3000,falldown
神7,7820,flyout
新视野号,16260.0,flyout


df = pd.read_csv('velocity_earth.csv')
df


df['name'][4:8]


%%writefile Timemoney.csv
TIME,MONEY
2000,36
2005,45
2010,67
2015,75
2020,97
2025,108


df = pd.read_csv('Timemoney.csv')
df


plt.figure(figsize=(6,4))
plt.plot(df["TIME"],df["MONEY"],marker='o',linestyle='-',color='b')
plt.title('TIME-YEAR') 
plt.xlabel('TIME') 
plt.ylabel('MONRY') 
plt.show()


import numpy as np


a = np.array(range(64))


a.shape = (8,8)


a


angle=np.array(range(361))
rad=np.pi*angle/180
angle_sin=np.sin(rad)
angle_cos=np.cos(rad)
plt.plot(angle,angle_sin,color='red',label='sin')
plt.plot(angle,angle_cos,color='blue',label='cos')
plt.xlabel('angle')
plt.ylabel('value')
plt.title('sin&cos')
plt.xticks([0,30,60,90,120,150,180,210,240,270,300,330,360],['0°','30°','60°','90°','120°','150°','180°','210°','240°','270°','300°','330°','360°'])
plt.grid()
plt.legend()
plt.show()



